package Others.DesignPattern.BuilderPattern.Pattern;

import Others.DesignPattern.BuilderPattern.Pattern.Object.Director;
import Others.DesignPattern.BuilderPattern.Pattern.Object.People;
import Others.DesignPattern.BuilderPattern.Pattern.Object.PersonFatBuilder;
import Others.DesignPattern.BuilderPattern.Pattern.Object.PersonThinBuilder;

public class main {
    public static void main(String[] args) {
        //构建者模式

        Director director = new Director(new PersonThinBuilder());
        People p = director.construct();
        p.show();

        System.out.println();

        Director director1 = new Director(new PersonFatBuilder());
        People p1 = director1.construct();
        p1.show();

        //

    }
}
